type-u8: fix u8 <> double conversions for chroma type
authorThomas Manni <thomas.manni@free.fr>
Sun, 4 Mar 2018 09:17:07 +0000 (10:17 +0100)
committerØyvind Kolås <pippin@gimp.org>
Sat, 21 Apr 2018 13:18:07 +0000 (15:18 +0200)
babl/base/type-u8.c

index 8eeaf65347bdb4f8f17cb6f9ec6f03751f122b7b..d17590d860ba2a859968c6e7ab784c2f455bbfd4 100644 (file)
@@ -110,7 +110,7 @@ convert_u8_double_scaled (BablConversion *c,
 
 MAKE_CONVERSIONS (u8, 0.0, 1.0, 0x00, UINT8_MAX)
 MAKE_CONVERSIONS (u8_luma, 0.0, 1.0, 16, 235)
-MAKE_CONVERSIONS (u8_chroma, 0.0, 1.0, 16, 240)
+MAKE_CONVERSIONS (u8_chroma, -0.5, 0.5, 16, 240)
 
 void
 babl_base_type_u8 (void)